package com.vipsoft.base.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

/**
 * Entity基类
 */
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 搜索值
     */
    @TableField(exist = false)
    private String searchValue;
//    /**
//     * 用于拼IN条件
//     */
//    @TableField(exist = false)
//    private List<String> inParams;


    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     *创建人ID
     */
    @TableField(value = "create_user_id", fill = FieldFill.INSERT)
    private String  createUserId;
    /**
     *创建人姓名
     */
    @TableField(value = "create_user_name", fill = FieldFill.INSERT)
    private String  createUserName;
    /**
     *修改人ID
     */
    @TableField(value = "update_user_id", fill = FieldFill.UPDATE)
    private String  updateUserId;
    /**
     *修改人姓名
     */
    @TableField(value = "update_user_name", fill = FieldFill.UPDATE)
    private String  updateUserName;

    /**
     * 创建时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")  yml 中配置
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 状态(0:禁用、1：启用、3：删除、10：未发布)
     */
    @TableField(value = "status")
    private Integer status;


    public String getSearchValue() {
        return searchValue;
    }

    public void setSearchValue(String searchValue) {
        this.searchValue = searchValue;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

//    public List<String> getInParams() {
//        return inParams;
//    }
//
//    public void setInParams(List<String> inParams) {
//        this.inParams = inParams;
//    }
}
